package cn.helele.remoteurl;

import cn.helele.entity.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFallback implements UserFeignClient {

    @Override
    public User queryUserById(int id) {
        User user = new User();
        user.setId(new Long(id));
        user.setName("服务器异常!");
        return user;
    }
}
